//package com.glueball.crm.module.client.ui;
//
//import com.glueball.crm.module.client.model.Client;
//import com.glueball.crm.module.ui.CrmCompositeUI;
//import com.google.gwt.core.client.GWT;
//import com.google.gwt.uibinder.client.UiBinder;
//import com.google.gwt.uibinder.client.UiField;
//import com.google.gwt.user.client.ui.Composite;
//import com.google.gwt.user.client.ui.Label;
//import com.google.gwt.user.client.ui.TextBox;
//import com.google.gwt.user.client.ui.Widget;
//
//public class NewClientUI extends CrmCompositeUI {
//	
//	@UiField Label   clientNumber;
//	@UiField TextBox clientName;
//	@UiField TextBox clientAddress;
//	@UiField TextBox clientCity;
//	@UiField TextBox clientCountry;
//	@UiField TextBox clientPostcode;
//	@UiField TextBox clientMaidenName;
//	@UiField TextBox clientMothersName;
//	@UiField TextBox clientEmail;
//	@UiField TextBox clientRegNumber;
//	@UiField TextBox clientTaxNumber;
//	
//	private Client client = new Client();
//
//	private static NewClientUiBinder uiBinder = GWT.create(NewClientUiBinder.class);
//	
//	interface NewClientUiBinder extends UiBinder<Widget, NewClientUI> {
//	}
//		
//	public NewClientUI(Composite crmApp) {
//		super(crmApp);
//		initWidget(uiBinder.createAndBindUi(this));
//	}	
//
//	public void setClient(Client client) {
//		this.client = client;
//	}
//	
//	public void refresh() {
//		clientNumber.setText(client.getClientNumber());
//		clientName.setText(client.getName());
//		clientAddress.setText(client.getAddress());
//		clientCity.setText(client.getCity());
//		clientCountry.setText(client.getCountry());
//		clientPostcode.setText(client.getPostcode());
//		clientMaidenName.setText(client.getMaidenName());
//		clientMothersName.setText(client.getMothersName());
//		clientEmail.setText(client.getCompanyEmailAddress());
//		clientRegNumber.setText(client.getCompanyRegNumber());
//		clientTaxNumber.setText(client.getCompanyTaxNumber());		
//	}
//		
//	public Client getClient() {
//		Client client = new Client();
//		client.setId(client.getId());
//		client.setClientNumber(client.getClientNumber());
//		client.setName(clientName.getText());
//		client.setAddress(clientAddress.getText());
//		client.setCity(clientCity.getText());
//		client.setCountry(clientCountry.getText());
//		client.setPostcode(clientPostcode.getText());
//		client.setMaidenName(clientMaidenName.getText());
//		client.setMothersName(clientMothersName.getText());
//		client.setCompanyEmailAddress(clientEmail.getText());
//		client.setCompanyRegNumber(clientRegNumber.getText());
//		client.setCompanyTaxNumber(clientTaxNumber.getText());
//		return client;
//	}
//}
